package com.xz.xzutils.components.console;

import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.event.DocumentEvent;
import com.intellij.openapi.editor.event.DocumentListener;
import org.jetbrains.annotations.NotNull;

/**
 * <p>
 * 文档内容监听器
 * </p>
 *
 * @author DONG.WANG17@HAND-CHINA.COM
 * @apiNote
 * @since 2025-01-14 17:33
 */
public class ConsoleDocumentListener implements DocumentListener {
    private static final Logger LOGGER = Logger.getInstance(ConsoleDocumentListener.class);

    private final Editor editor;
    public ConsoleDocumentListener(Editor editor) {
        this.editor = editor;
    }
    @Override
    public void documentChanged(@NotNull DocumentEvent event) {
        LOGGER.info("documentChanged");
        DocumentListener.super.documentChanged(event);
    }
}
